<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>华中师范大学附属孝感幼儿园网上招生系统</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="/Public/adminlte/bootstrap/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/Public/adminlte/dist/css/AdminLTE.min.css">

  <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
        page. However, you can choose any other skin. Make sure you
        apply the skin class to the body tag so the changes take effect.
  -->
  <link rel="stylesheet" href="/Public/adminlte/dist/css/skins/skin-blue.min.css">
    <!-- jvectormap -->
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

  <!-- Main Header -->
  <header class="main-header">

    <!-- Logo -->
    <a href="/" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini">ZS</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg">孝感幼儿园招生系统</span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle</span>
      </a>
      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Sidebar toggle button-->
		 
          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <!-- The user image in the navbar-->
              <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="user-image" alt="User Image">
              <!-- hidden-xs hides the username on small devices so only the image appears. -->
              <span class="hidden-xs"><?php echo (cookie('name')); ?></span>
            </a>
            <ul class="dropdown-menu">
              <!-- The user image in the menu -->
              <li class="user-header">
                <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="img-circle" alt="User Image">

                <p>
                  <?php echo (cookie('name')); ?>——<?php echo (cookie('userid')); ?>
                  <small>上次登录时间：<?php echo (cookie('logindate')); ?></small>
                </p>
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <div class="pull-left">
                  <a href="/index.php/Home/Index/profile" class="btn btn-default btn-flat">个人信息</a>
                </div>
                <div class="pull-right">
                  <a href="/index.php/Home/login/logout" class="btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
          
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

      <!-- Sidebar user panel (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <img src="/Public/adminlte/dist/img/user1-128x128.jpg" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
          <p><?php echo (cookie('name')); ?></p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>

      <!-- search form (Optional) -->
      <form action="/index.php/Home/Index/viewstu" method="post" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="sname" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>
      <!-- /.search form -->

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu" id="side-menu">
        <li class="header">菜单栏</li>
        <!-- Optionally, you can add icons to the links -->
        <li class="<?php echo 1==1?'active':'1';;?>"><a href="/index.php/Home/Index/"><i class="fa fa-dashboard"></i> <span>主页</span></a></li>

      

        <li class="treeview <?php echo 1==2?'active':'';?>">
          <a href=""><i class="fa fa-user"></i> <span>学生管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/index.php/Home/Index/addstu"><i class="fa fa-circle-o"></i> 添加学生</a></li>
            <li><a href="/index.php/Home/Index/stulist"><i class="fa fa-circle-o"></i> 学生列表</a></li>
			<li><a href="/index.php/Home/Index/searchstu"><i class="fa fa-circle-o"></i> 查找学生</a></li>
          </ul>
		</li>

		
<?php if($_SESSION['sfid']== 1): ?><li class="treeview <?php echo 1==3?'active':'1';?>">
          <a href=""><i class="fa fa-user-secret"></i> <span>老师管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="/index.php/Home/Index/addth"><i class="fa fa-circle-o"></i> 添加老师</a></li>
            <li><a href="/index.php/Home/Index/thlist"><i class="fa fa-circle-o"></i> 老师列表</a></li>
          </ul>
        </li><?php endif; ?>
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper" id="mcont">

		<!-- Content Header (Page header) -->
    <section class="content-header"></section>

    <div class="pad margin no-print">
      <div class="callout callout-info" style="margin-bottom: 0!important;">
        <h4><i class="fa fa-info"></i> 提示:</h4>
        在报名请，请仔细阅读《招生归属权确认办法》,并将电子文件资料提交到管理员邮箱。
      </div>
    </div>

	<section class="content">

      <div class="row">
			<div class="col-md-8">
					<div class="box box-info">
            <div class="box-header with-border">
              <h3 class="box-title">最新报名名单</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                </button>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div class="table-responsive">
                <table class="table no-margin">
                  <thead>
                  <tr>
                    <th>序号</th>
                    <th>姓名</th>
                    <th>班级</th>
                    <th>家庭住址</th>
                  </tr>
                  </thead>
                  <tbody>
				  <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$stu): $mod = ($i % 2 );++$i;?><tr>
                    <td><?php echo ($i); ?></td>
                    <td><?php echo ($stu["name"]); ?></td>
                    <td><?php if($stu["class"] == '小班'): ?><span class="label label-warning">小班</span>
<?php elseif($stu["class"] == '中班'): ?><span class="label label-success">中班</span>
<?php else: ?><span class="label label-danger">大班</span><?php endif; ?></td>
                    <td><?php echo ($stu["address"]); ?></div>
                    </td>
                  </tr><?php endforeach; endif; else: echo "" ;endif; ?>

                  </tbody>
                </table>
              </div>
              <!-- /.table-responsive -->
            </div>
            <!-- /.box-body -->
            <div class="box-footer clearfix">
              <a href="/index.php/Home/Index/addstu" class="btn btn-sm btn-info btn-flat pull-left">新建报名</a>
              <a href="/index.php/Home/Index/stulist" class="btn btn-sm btn-default btn-flat pull-right">查看所有报名</a>
            </div>
            <!-- /.box-footer -->
          </div>
			</div> 

			<div class="col-md-4">
				<div class="box box-default">
            <div class="box-header with-border">
              <h3 class="box-title">报名学生年龄段比例</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
                </button>
                <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div class="row">
                <div class="col-md-8">
                  <div class="chart-responsive">
                    <canvas id="pieChart" height="150"></canvas>
                  </div>
                  <!-- ./chart-responsive -->
                </div>
                <!-- /.col -->
                <div class="col-md-4">
                  <ul class="chart-legend clearfix">
                    <li><i class="fa fa-circle-o text-red"></i> 3岁以下</li>
                    <li><i class="fa fa-circle-o text-green"></i> 3—4岁</li>
                    <li><i class="fa fa-circle-o text-yellow"></i> 4—5岁</li>
                    <li><i class="fa fa-circle-o text-aqua"></i> 5—6岁</li>
                    <li><i class="fa fa-circle-o text-light-blue"></i> 6岁以上</li>
                  </ul>
                </div>
                <!-- /.col -->
              </div>
              <!-- /.row -->
            </div>
            <!-- /.box-body -->
            <div class="box-footer no-padding">
              <ul class="nav nav-pills nav-stacked" id="stu_list">
                <li><a href="#"><i class="fa fa-circle-o text-red"></i>3岁以下<span class="pull-right text-red"><i class="fa fa-angle-left"></i> <span>0</span></span></a></li>
                <li><a href="#"><i class="fa fa-circle-o text-green"></i>3—4岁<span class="pull-right text-green"><i class="fa fa-angle-left"></i> <span>0</span></span></a></li>
                <li><a href="#"><i class="fa fa-circle-o text-yellow"></i>4—5岁<span class="pull-right text-yellow"><i class="fa fa-angle-left"></i> <span>0</span></span></a></li>
				<li><a href="#"><i class="fa fa-circle-o text-aqua"></i>5—6岁<span class="pull-right text-aqua"><i class="fa fa-angle-left"></i> <span>0</span></span></a></li>
				<li><a href="#"><i class="fa fa-circle-o text-light-blue"></i>6岁以上<span class="pull-right text-light-blue"><i class="fa fa-angle-left"></i> <span>0</span></span></a></li>
              </ul>
            </div>
            <!-- /.footer -->
          </div>	
			</div> 

      </div>
      <!-- /.row -->

      <!-- Table row -->
      <div class="row">
        
        <!-- /.col -->
      </div>
      <!-- /.row -->

      <div class="row">
        <!-- accepted payments column -->
       
        <!-- /.col -->
      
        <!-- /.col -->
      </div>
      <!-- /.row -->
</section>
      <!-- this row will not appear when printing -->


    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 2.2.3 -->
<script src="/Public/adminlte/plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/Public/adminlte/bootstrap/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="/Public/adminlte/dist/js/app.js"></script>

<!-- ChartJS 1.0.1 -->
<script src="/Public/adminlte/plugins/chartjs/Chart.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="/Public/adminlte/dist/js/pages/dashboard2.js?3123"></script>

</body>
</html>